package com.wwz.frame.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Component
@Data
/**
* @Description 赋值方式一 ：统一bean 赋值
* @Author wwz
* @Date 2019/09/23
* @Param
* @Return
*/
@ConfigurationProperties(prefix = "value.user")
public class User {
    /** 赋值方式二： @Value("value.user.name")   单独@Value赋值 */
    private String name;
    private String uuid;
    private String desc;
    private Date time;
    private List<String> like;
    private Map<String,String> maps;
}
